package figureAndGraph;

/**
 * 功能描述:边
 * 2024/07/01
 *
 * @author ZhangYi
 */
public class Edge<T> {
    /**
     * 权重
     */
    public int weight;

    /**
     * from 节点
     */
    public Node<T> from;
    /**
     * to 节点
     */
    public Node<T> to;

    public Edge(int weight,Node<T> from,Node<T> to) {
        this.weight = weight;
        this.from = from;
        this.to = to;
    }
}
